/*
 * author      : 吴中勤 
 * date        : 2019/3/24
 * description : TODO
 */

package org.wzq.learn;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogbackTest {

    private static Logger logger = LoggerFactory.getLogger(LogbackTest.class);

    public static void main(String[] args) {
        for (int i = 100; i >= 0; i--)
            logger1();
    }

    public static void logger1() {
        Logger logger1 = LoggerFactory.getLogger("org.wzq.learn");
        logger1.trace("trace logger1 {}", LogbackTest.class.getSimpleName());
        logger1.debug("debug logger1 {}", LogbackTest.class.getSimpleName());
        logger1.info("info logger1 {}", LogbackTest.class.getSimpleName());
        logger1.warn("warn logger1 {}", LogbackTest.class.getSimpleName());
        logger1.error("error logger1 {}", LogbackTest.class.getSimpleName());
        //
        Logger logger2 = LoggerFactory.getLogger("org.wzq.learn.foo");
        logger2.trace("trace logger2 {}", LogbackTest.class.getSimpleName());
        logger2.debug("debug logger2 {}", LogbackTest.class.getSimpleName());
        logger2.info("info logger2 {}", LogbackTest.class.getSimpleName());
        logger2.warn("warn logger2 {}", LogbackTest.class.getSimpleName());
        logger2.error("error logger2 {}", LogbackTest.class.getSimpleName());
    }
}
